package com.thinvent.nj.ais.mapper;

import com.thinvent.nj.mybatis.mapper.CURDMapper;
import com.thinvent.nj.ais.entity.DictItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liupeijun
 */
@Repository
public interface DictItemMapper extends CURDMapper<DictItem, String> {

    List<DictItem> getItemsByGroupKey(String groupKey);

    DictItem getUniqueItem(@Param("groupKey") String groupKey, @Param("itemKey") String itemKey);

    List<DictItem> getItemsByGroupId(String groupId);
}
